package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizQitasheshiyingjijianchaMapper;
import com.manage.project.biz.domain.BizQitasheshiyingjijiancha;
import com.manage.project.biz.service.IBizQitasheshiyingjijianchaService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizQitasheshiyingjijianchaServiceImpl implements IBizQitasheshiyingjijianchaService
{
    @Autowired
    private BizQitasheshiyingjijianchaMapper bizQitasheshiyingjijianchaMapper;

    /**
     * 查询其他设施应急检查
     *
     * @param id 其他设施应急检查主键
     * @return 其他设施应急检查
     */
    @Override
    public BizQitasheshiyingjijiancha selectBizQitasheshiyingjijianchaById(Long id)
    {
        return bizQitasheshiyingjijianchaMapper.selectBizQitasheshiyingjijianchaById(id);
    }

    /**
     * 查询其他设施应急检查列表
     *
     * @param bizQitasheshiyingjijiancha 其他设施应急检查
     * @return 其他设施应急检查
     */
    @Override
    public List<BizQitasheshiyingjijiancha> selectBizQitasheshiyingjijianchaList(BizQitasheshiyingjijiancha bizQitasheshiyingjijiancha)
    {
        return bizQitasheshiyingjijianchaMapper.selectBizQitasheshiyingjijianchaList(bizQitasheshiyingjijiancha);
    }

    /**
     * 新增其他设施应急检查
     *
     * @param bizQitasheshiyingjijiancha 其他设施应急检查
     * @return 结果
     */
    @Override
    public int insertBizQitasheshiyingjijiancha(BizQitasheshiyingjijiancha bizQitasheshiyingjijiancha)
    {
        bizQitasheshiyingjijiancha.setCreateTime(DateUtils.getNowDate());
        return bizQitasheshiyingjijianchaMapper.insertBizQitasheshiyingjijiancha(bizQitasheshiyingjijiancha);
    }

    /**
     * 修改其他设施应急检查
     *
     * @param bizQitasheshiyingjijiancha 其他设施应急检查
     * @return 结果
     */
    @Override
    public int updateBizQitasheshiyingjijiancha(BizQitasheshiyingjijiancha bizQitasheshiyingjijiancha)
    {
        bizQitasheshiyingjijiancha.setUpdateTime(DateUtils.getNowDate());
        return bizQitasheshiyingjijianchaMapper.updateBizQitasheshiyingjijiancha(bizQitasheshiyingjijiancha);
    }

    /**
     * 批量删除其他设施应急检查
     *
     * @param ids 需要删除的其他设施应急检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshiyingjijianchaByIds(Long[] ids)
    {
        return bizQitasheshiyingjijianchaMapper.deleteBizQitasheshiyingjijianchaByIds(ids);
    }

    /**
     * 删除其他设施应急检查信息
     *
     * @param id 其他设施应急检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshiyingjijianchaById(Long id)
    {
        return bizQitasheshiyingjijianchaMapper.deleteBizQitasheshiyingjijianchaById(id);
    }
}
